<ul>
  <% permitted_to? :read, :admin_products do %>
    <li><%= link_to "Přehled", admin_products_path, ({:class => "active"} if current_page?(:controller => "products")) %></li>
  <% end %>
  <% permitted_to? :read, :admin_parameters do %>
    <li><%= link_to "Volitelné parametry", admin_parameters_path, ({:class => "active"} if in_url("volitelne-parametry")) %></li>
  <% end %>
  <% permitted_to? :read, :admin_properties do %>
    <li><%= link_to "Vlastnosti", admin_properties_path, ({:class => "active"} if current_page?(:controller => "properties")) %></li>
  <% end %>
  <% permitted_to? :read, :admin_property_patterns do %>
    <li><%= link_to "Šablony vlastností", admin_property_patterns_path, ({:class => "active"} if in_url("sablony-vlastnosti")) %></li>
  <% end %>
  <% permitted_to? :read, :admin_amount_types do %>
    <li><%= link_to "Typy množství", admin_amount_types_path, ({:class => "active"} if in_url("typy-mnozstvi")) %></li>
  <% end %>
  <% permitted_to? :read, :admin_metrics do %>
    <li><%= link_to "Jednotky", admin_metrics_path, ({:class => "active"} if in_url("jednotky")) %></li>
  <% end %>
  <% permitted_to? :read, :admin_tax_categories do %>
    <li><%= link_to "Daňové skupiny", admin_tax_categories_path, ({:class => "active"} if in_url("danove-skupiny")) %></li>
  <% end %>
</ul>